#ifndef GENERATOR_H
#define GENERATOR_H
#include "task.h"
#include <stdlib.h>
Task generator(double generate_ratio,int task_id)
{
    int rand_num = rand() % 100;
    if(rand_num<(int)generate_ratio*100)
    {
    Task task_new;
    task_new.task_id=task_id;
    task_new.task_period=40+rand()%50;
    task_new.task_wcet=task_new.task_period/20 ;
    }

}

#endif // GENERATOR_H
